/*
 * util.h -- header file of functions for mtk gsm module
 *
 * Copyright (C) 2007 lufang <lufang@gmail.com>
 *
 * Version 1.0 june 2007
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */

#ifndef _UTILS_H_
#define	_UTILS_H_

#include <string.h>
#include "broncho_log.h"

#define MODULE_WRITE_FRAME(_module, _channel, _data, _data_len, _type)	\
			(_module)->write_frame((_module), (_channel), (_data), (_data_len), (_type))

#define SERIAL_AT_COMMAND(_module, _input)	\
	at_command((_module)->serial_fd, _input, 10000)

#ifdef ENABLE_LOG
#define GSMMUX_LOG		1
#else
#define GSMMUX_LOG		0
#endif
#define GSMMUX_DEBUG    ALOGI
#define GSMMUX_PRINT    ALOGD

#endif

